package com.shsh.safemanage.model;

public class Equipment {
	private Long id;
	private String equipName;
	private Long departmentID;
	private boolean isEquipmentManager;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEquipName() {
		return equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}

	public Long getDepartmentID() {
		return departmentID;
	}

	public void setDepartmentID(Long departmentID) {
		this.departmentID = departmentID;
	}
	
	public boolean isEquipmentManager() {
		return isEquipmentManager;
	}

	public void setEquipmentManager(boolean isEquipmentManager) {
		this.isEquipmentManager = isEquipmentManager;
	}

	public int hashCode() {
		return this.id.intValue();
	}
	
	public boolean equals(Object o) {
		if (o == null) {
			return false;
		}
		
		if (!(o instanceof Equipment)) {
			return false;
		}
		
		Equipment equipment = (Equipment) o;
		return equipment.getId().equals(this.id);
	}

}
